package com.dabai.qrtools.other;

/**
 * Description : Other
 *
 * @author BAI
 */
public class WifiUtils {


    public static String getSsid(String content){
        String netWorkNameTemp = content.substring(content
                .indexOf("S:"));
        return netWorkNameTemp.substring(2,
                netWorkNameTemp.indexOf(";"));
    }

    public static String getPassword(String content){
        String passwordTemp = content.substring(content
                .indexOf("P:"));
        return passwordTemp.substring(2,
                passwordTemp.indexOf(";"));

    }




}
